package models

import (
	"github.com/astaxie/beego/orm"
	"time"
)

type SerialPK struct{
	Id       string   `orm:"column(id);pk"`
	createDate time.Time `orm:"auto_now_add;type(datetime)"`
	Teacher *Teacher `orm:"rel(fk)"`  // 外键
}

func init() {
	orm.RegisterModel(new(SerialPK))
}
func (m *SerialPK) TableName() string {
	return "serialPK"
}
